package de.gee.erep.client.ui.view;

import java.util.ArrayList;

import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

import de.gee.erep.client.ui.displays.HomeDisplay;
import de.gee.erep.shared.Home;

/**
 * @author Matthew Gee created: 15.03.2011
 */
public class HomeView implements HomeDisplay {
	/***/
	private VerticalPanel panel = new VerticalPanel();

	/**
	 * @param eventBus */
	public HomeView(final HandlerManager eventBus) {
	}

	@Override
	public final Widget asWidget() {
		return panel.asWidget();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * de.gee.erep.client.ui.displays.HomeDisplay#addMessage(java.util.ArrayList
	 * )
	 */
	@Override
	public final void addMessage(final String htmlMessage) {
		this.panel.add(new HTML(htmlMessage));
	}

	/* (non-Javadoc)
	 * @see de.gee.erep.client.ui.displays.GenericDisplay#setData(java.util.ArrayList)
	 */
	@Override
	public void setData(final ArrayList<Home> list) {
	}

}
